.machine-learning {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
}

.machine-learning .ant-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.machine-learning .ant-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.machine-learning .ant-card-head {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.machine-learning .ant-card-head-title {
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
}

.machine-learning .ant-card-head-title span {
  color: #fff !important;
}

.machine-learning .ant-card-head-title .anticon {
  color: inherit !important;
}

.machine-learning .ant-tabs-card > .ant-tabs-content {
  margin-top: 16px;
}

.machine-learning .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
  background: transparent;
  border: none;
}

.machine-learning .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
  font-weight: 500;
}

.machine-learning .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
  color: #fff;
}

.machine-learning .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab:hover {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
  color: #fff;
}

/* 模型状态卡片 */
.machine-learning .ant-statistic {
  text-align: center;
}

.machine-learning .ant-statistic-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.machine-learning .ant-statistic-content {
  font-size: 18px;
  font-weight: 600;
}

/* 表格样式 */
.machine-learning .ant-table-thead > tr > th {
  background: linear-gradient(135deg, #f0f2f5 0%, #e6f7ff 100%);
  border-bottom: 2px solid #1890ff;
  font-weight: 600;
  color: #262626;
}

.machine-learning .ant-table-tbody > tr:hover > td {
  background: #e6f7ff;
}

/* 表单样式 */
.machine-learning .ant-form-item-label > label {
  font-weight: 500;
  color: #262626;
}

.machine-learning .ant-input,
.machine-learning .ant-select-selector,
.machine-learning .ant-input-number {
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  transition: all 0.3s ease;
}

.machine-learning .ant-input:focus,
.machine-learning .ant-select-focused .ant-select-selector,
.machine-learning .ant-input-number:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 按钮样式 */
.machine-learning .ant-btn-primary {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.machine-learning .ant-btn-primary:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #73d13d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.machine-learning .ant-btn-primary:disabled {
  background: #f5f5f5;
  color: #bfbfbf;
  transform: none;
  box-shadow: none;
}

/* 进度条样式 */
.machine-learning .ant-progress-line {
  margin: 16px 0;
}

.machine-learning .ant-progress-bg {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
}

.machine-learning .ant-progress-success-bg {
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
}

/* 警告框样式 */
.machine-learning .ant-alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.machine-learning .ant-alert-info {
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  border-left: 4px solid #1890ff;
}

.machine-learning .ant-alert-success {
  background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
  border-left: 4px solid #52c41a;
}

.machine-learning .ant-alert-warning {
  background: linear-gradient(135deg, #fffbe6 0%, #fffff0 100%);
  border-left: 4px solid #faad14;
}

.machine-learning .ant-alert-error {
  background: linear-gradient(135deg, #fff2f0 0%, #fff1f0 100%);
  border-left: 4px solid #f5222d;
}

/* 标签样式 */
.machine-learning .ant-tag {
  border-radius: 12px;
  padding: 4px 12px;
  font-weight: 500;
  border: none;
}

.machine-learning .ant-tag-blue {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  color: #1890ff;
}

/* 文本区域样式 */
.machine-learning .ant-input {
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* 统计数字样式 */
.machine-learning .ant-statistic-content-value {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* 模态框样式 */
.machine-learning .ant-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px 8px 0 0;
}

.machine-learning .ant-modal-title {
  color: #fff;
  font-weight: 600;
}

.machine-learning .ant-modal-close {
  color: #fff;
}

.machine-learning .ant-modal-close:hover {
  color: #f0f0f0;
}

/* 图表容器样式 */
.machine-learning .recharts-wrapper {
  border-radius: 8px;
  background: #fafafa;
  padding: 16px;
}

.machine-learning .recharts-tooltip-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 分割线样式 */
.machine-learning .ant-divider {
  border-color: #e8e8e8;
  margin: 16px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .machine-learning {
    padding: 16px;
  }
  
  .machine-learning .ant-card-head-title {
    font-size: 14px;
  }
  
  .machine-learning .ant-form-item {
    margin-bottom: 16px;
  }
  
  .machine-learning .ant-col {
    margin-bottom: 16px;
  }
  
  .machine-learning .ant-statistic-content-value {
    font-size: 16px;
  }
  
  .machine-learning .ant-table {
    font-size: 12px;
  }
}

/* 加载动画 */
@keyframes mlFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.machine-learning .ant-card {
  animation: mlFadeIn 0.6s ease-out;
}

/* 悬浮效果 */
.machine-learning .ant-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.machine-learning .ant-card:hover .ant-card-head {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
}

/* 自定义滚动条 */
.machine-learning ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.machine-learning ::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.machine-learning ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
  border-radius: 3px;
}

.machine-learning ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #73d13d 100%);
}

/* 特殊效果 */
.machine-learning .ant-card-small .ant-card-head {
  background: linear-gradient(135deg, #f0f2f5 0%, #e6f7ff 100%);
  color: #262626;
}

.machine-learning .ant-card-small .ant-card-head-title {
  color: #262626;
  font-size: 14px;
}

/* 预测结果高亮 */
.machine-learning .prediction-result {
  background: linear-gradient(135deg, #f6ffed 0%, #e6f7ff 100%);
  border: 2px solid #52c41a;
  border-radius: 12px;
  padding: 16px;
}

/* 聚类结果样式 */
.machine-learning .cluster-item {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #1890ff;
}

/* 情感分析结果 */
.machine-learning .sentiment-positive {
  color: #52c41a;
  font-weight: 600;
}

.machine-learning .sentiment-negative {
  color: #f5222d;
  font-weight: 600;
}

.machine-learning .sentiment-neutral {
  color: #faad14;
  font-weight: 600;
} 